<template>
  <div>
    <el-date-picker v-model="value1" type="date" placeholder="选择日期">
    </el-date-picker>
  </div>
</template>

<script>
export default {
  name: "mydatepicker",
  props: ["data"],
  data() {
    return {
      value1: this.data.value,
    };
  },
  watch: {
    value1(v) {
      this.data.value = v;
    },
  },
};
</script>